import request from '@/utils/request'

// 注册
export function tenantRegister(data) {
  return request({
    url: '/tenant/user/register',
    method: 'post',
    data
  })
}
// 绑定
export function userContactInfo(data) {
  return request({
    url: '/tenant/auth/bing/user/contact/info',
    method: 'post',
    data
  })
}
// 登录
export function tenantLogin(data) {
  return request({
    url: '/tenant/security/auth/login',
    method: 'post',
    data
  })
}

// 二次检验登录
export function tenantCheckAgain(data) {
  return request({
    url: '/tenant/auth/checkopt',
    method: 'post',
    data
  })
}
// 登出
export function logout(data) {
  return request({
    url: '/tenant/auth/logout',
    method: 'post',
    data
  })
}
